package song.yun;

import com.company.Pet;
import java.io.*;
public class Man extends Person implements Pet, Serializable {
    private int jirouzhi = 7;
    private Person p = new Person(7, 2);
    public Man(){super();}
    public Man(int h, int a, int j) {
        super(h, a);
        this.jirouzhi = j;
    }
    public void print(){
        super.print();
        System.out.println(this.jirouzhi);
    }
    public void pr(){
        this.p.print();
    }

    @Override
    public void pao(double rate) {
        System.out.println("我的奔跑速度是:" + rate);
    }

    @Override
    public void tiao(double tall) {
        System.out.println("我的跳起高度为:" + tall);
    }
    public static final void fun1(){
        System.out.println("我是Man类!");
    }
}
